<template>
	<view>
		<view class="top_bar">
			<view class="flex">
				<navigator open-type="navigateBack"  class="cuIcon-back margin-right-sm"></navigator>
				<view>群聊详情</view>
			</view>
			<view class="cuIcon-activityfill padding-right-sm"></view>
		</view>
		<view class="flex margin game_detail">
			<image class="game_img" src="https://img.js.design/assets/img/6001753d1d656e3ee945d9d3.jpg" mode="aspectFill"></image>
			<view style="flex: 1;">
				<view class="game_title">今晚麻将开黑</view>
				<view class="game_sub_title padding-tb-xs">香港广场 05/08 08:00~10:00</view>
				<view class="text-center"><text class="text-orange-light">37人</text> / <text>40人</text></view>
				<view class="flex align-center justify-between margin-tb-xs">
					<view class="flex margin-right-lg">
						<image class="user_avatar" src="https://img.js.design/assets/img/61516307543d3e0d6e04f004.png" mode="aspectFill"></image>
						<image class="user_avatar" src="https://img.js.design/assets/img/6235a4d1166b25e470e1f143.jpg" mode="aspectFill"></image>
						<image class="user_avatar" src="https://img.js.design/assets/img/61de9e66c93c5ec8e2b20f57.png" mode="aspectFill"></image>
						<image class="user_avatar" src="https://img.js.design/assets/img/6184e0313fd139197621e09e.png" mode="aspectFill"></image>
					</view>
					<navigator url="/pages/chat/group_chat_member" class="show_more text-right" >查看更多</navigator>
				</view>
			</view>
		</view>
		<view class="cu-chat">
			<view class="cu-item self">
				<view class="main">
					<view class="content bg-green shadow">
						<text>喵喵喵！喵喵喵！喵喵喵！喵喵！喵喵！！喵！喵喵喵！</text>
					</view>
				</view>
				<view class="cu-avatar radius" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big107000.jpg);"></view>
				<view class="date">2018年3月23日 13:23</view>
			</view>
			<view class="cu-info round">对方撤回一条消息!</view>
			<view class="cu-item">
				<view class="cu-avatar radius" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big143004.jpg);"></view>
				<view class="main">
					<view class="content shadow">
						<text>喵喵喵！喵喵喵！</text>
					</view>
				</view>
				<view class="date "> 13:23</view>
			</view>
			<view class="cu-info">
				<text class="cuIcon-roundclosefill text-red "></text> 对方拒绝了你的消息
			</view>
			<view class="cu-info">
				对方开启了好友验证，你还不是他(她)的好友。请先发送好友验证请求，对方验证通过后，才能聊天。
				<text class="text-blue">发送好友验证</text>
			</view>
		</view>

		<view class="cu-bar foot input" :style="[{bottom:InputBottom+'px'}]">
			<view class="action">
				<text class="cuIcon-add text-grey"></text>
			</view>
			<input class="solid-bottom" @focus="InputFocus" @blur="InputBlur" :adjust-position="false" :focus="false" maxlength="300" cursor-spacing="10"
		></input>
			<view class="action">
				<text class="cuIcon-emojifill text-grey"></text>
			</view>
			<button class="cu-btn bg-orange-dark shadow">发送</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				InputBottom: 0
			}
		},
		methods: {
			InputFocus(e) {
							this.InputBottom = e.detail.height
						},
			InputBlur(e) {
				this.InputBottom = 0
			}
		}
	}
</script>

<style scoped>
	.top_bar{
		background: #fff;
		position: fixed;
		top: 0;
		height: 90rpx;
		padding-top: 0px;
		z-index: 9999;
		line-height: 90rpx;
		padding-left: 46rpx;
		width: 100%;
		margin-bottom: 100rpx;
		font-size: 36rpx;
		display: flex;
		justify-content: space-between
	}
	.cu-chat{
		margin-top: 100rpx;
	}
	.game_img{
		border-radius: 40rpx;
		width: 218rpx;
		height: 218rpx;
		margin-right: 20rpx;
	}
	.game_detail{
		margin-top: 110rpx;
	}
	.game_title{
		color: rgba(28, 29, 32, 1);
		font-size: 40rpx;
	}
	.game_sub_title{
		font-size: 30rpx;
	}
	.show_more{
		background: rgba(245, 127, 10, 1);
		color: #fff;
		font-size: 18rpx;
		border-radius: 10rpx;
		padding: 10rpx 20rpx;
	}
	.user_avatar{
		width: 60rpx;
		height: 60rpx;
		border-radius: 10rpx;
	}
</style>
